﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentacion/MasterPage/MasterPage.Master" AutoEventWireup="true" CodeBehind="AgregarProfesor.aspx.cs" Inherits="vudu.Presentacion.Vista.VU_06_Gestionar_Profesores.AgregarProfesor" 
ValidateRequest="false"%>
<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit, Version=4.1.51116.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %>
<%@ Register TagPrefix="ajax" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit, Version=4.1.51116.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style16
        {
            width: 25%;
            height: 25px;
        }
        .style17
        {
            height: 20px;
            width: 25%;
        }
        .style18
        {
            height: 25px;
            width: 25%;
        }
        .style19
        {
            height: 35px;
            width: 25%;
        }
        .style21
        {
            width: 25%;
            height: 25px;
        }
        .style22
        {
            width: 425px;
        }
        </style>

       <script>
           var nav4 = window.event ? true : false;
           function PresionarNumero(evt) {
               var key = nav4 ? evt.wich : evt.keyCode;

               if (window.event) {
                   key = evt.keyCode;
               }

               else if (evt.which) {
                   key = evt.which;
               }

               if ((key < 48 && key != 8 && key != 9 && key!=39) || key > 57) {
                   return false;
               }



               return true;
           }
        
        </script>

<script>
    var nav4 = window.event ? true : false;
    function PresionarNombre(evt) {
        var key = nav4 ? evt.wich : evt.keyCode;

        if (window.event) {
            key = evt.keyCode;
        }

        else if (evt.which) {
            key = evt.which;
        }

        if ((key != 8 && key != 9 && key!=39 && key!=37) && (key < 97 || key > 122) &&
                (key < 65 || key > 90)) {
            return false;

        }

        return true;
    }
        
        </script>

<script>
    var nav4 = window.event ? true : false;
    function PresionarEmail(evt) {
        var key = nav4 ? evt.wich : evt.keyCode;

        if (window.event) {
            key = evt.keyCode;
        }

        else if (evt.which) {
            key = evt.which;
        }

        if ((key != 8 && key != 9 &&  key!=64 && key!=45 && key!=46 && key!=95 ) 
            && (key < 48 || key > 57)
            && (key < 97 || key > 122) &&
                (key < 65 || key > 90)) {
            return false;

        }

        return true;
    }
        
        </script>


       <script>
           var nav4 = window.event ? true : false;
           function PresionarFecha(evt) {
               var key = nav4 ? evt.wich : evt.keyCode;

               if (window.event) {
                   key = evt.keyCode;
               }

               else if (evt.which) {
                   key = evt.which;
               }

               if ((key < 48 && key != 8 && key != 9 && key != 39 && key!=47) || key > 57) {
                   return false;
               }



               return true;
           }
        
        </script>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="Panel1" runat="server" BorderStyle="Solid" BorderWidth="1px">
  
      <table border="0" cellspacing="0" cellpadding="0" align="center" 
          style="width: 88%">
         <tr>
             <td>
            </td>
            <td align="right">   
                <a class="migaActual"><asp:Label ID="uxNombreEscuela" runat="server" 
                    ForeColor="Black" ></asp:Label></a>
                &nbsp;</td>
          </tr>
        </table>
        <table width="89%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>
                &nbsp;</td>
          </tr>
          <tr>
            <td><a class="tituloGeneral">Gestionar Profesor</a><a class="subtituloGeneral">Agregar Profesor</a></td>
          </tr>
          <tr>
            <td align="center">
                <asp:Label ID="uxAvisoError" runat="server" Height="16px" Text="Label" 
                    Visible="False" Width="761px"></asp:Label>
                    <asp:ValidationSummary id="valSum" 
                             DisplayMode="List"
                             EnableClientScript="true"
                             CssClass="transaccionFallida"
                             HeaderText="Operación Fallida: Caracteres Introducidos Invalidos"
                             runat="server"/>

                    

                </td>
                           

              
          </tr>
          <tr>
            <td>   
                &nbsp;</td>
          </tr>
            <tr>
                <td>
                    <fieldset>
                        <legend><strong>Agregar&nbsp; Datos de un Profesor: </strong></legend>
                        <br />
                        <table style="width:100%;" Height="16px">
                           
                            <tr>
                                <td class="style21">
                                    <span style="color: red">*</span>
                                    <asp:Label ID="uxLabelCedula" runat="server" Text="C.I:"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="uxNacionalidad" runat="server" Height="22px" Width="37px">
                                        <asp:ListItem>V</asp:ListItem>
                                        <asp:ListItem>E</asp:ListItem>
                                    </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:TextBox ID="uxCedulaProfesor" runat="server" Width="100px" 
                                    onpaste="return false" onkeypress= "return PresionarNumero(event);" MaxLength="8"></asp:TextBox>
                                </td>
                                <td>
                                    <span style="color: red">*</span>
                                    <asp:Label ID="uxLabelSexo" runat="server">Sexo:</asp:Label>
                                </td>
                                <td>
                                    <asp:RadioButtonList ID="uxSexo" runat="server" RepeatDirection="Horizontal" 
                                        style="text-align: left" TextAlign="Left" Width="102px">
                                        <asp:ListItem>F</asp:ListItem>
                                        <asp:ListItem>M</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <tr>
                                <td class="style21">
                                    <span style="color: red">*</span>
                                    <asp:Label ID="uxLabelNombre" runat="server" Text="Nombre: "></asp:Label>
                                    
                                </td>
                                <td>
                                    <asp:TextBox ID="uxNombreProfesor" runat="server" Width="170px"  MaxLength="100"
                                    onpaste="return false" onkeypress= "return PresionarNombre(event);"></asp:TextBox>
                                </td>
                                <td>
                                    <span style="color: red">*</span>
                                    <asp:Label ID="uxLabelApellido" runat="server" Text="Apellido: "></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="uxApellidoProfesor" runat="server" Width="160px" MaxLength="100"
                                    onpaste="return false" onkeypress= "return PresionarNombre(event);"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style21">
                                    <span style="color: red">*</span>
                                    <asp:Label ID="uxLabelEmail" runat="server" Text="email:"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="uxEmail" runat="server" Width="170px" MaxLength="100"
                                    onpaste="return false" onkeypress= "return PresionarEmail(event);"></asp:TextBox>
                                </td>
                                <td>
                                    <span style="color: red">*</span>
                                    <asp:Label ID="uxLabelFechaNacimiento" runat="server" 
                                        Text="Fecha de Nacimiento:"></asp:Label>
                                </td>
                                <td>
                                    <asp:ScriptManager ID="ScriptManager2" runat="server" 
                                    EnableScriptGlobalization="True">
                                </asp:ScriptManager>
                                <asp:TextBox ID="uxFechadeNacimiento" runat="server" Width="160px" Height="20px"
                                onpaste="return false" onkeypress= "return PresionarFecha(event);" MaxLength="10"></asp:TextBox>
                                <ajax:CalendarExtender ID="CalendarExtender1" runat="server" 
                                        TargetControlID="uxFechadeNacimiento" /></td>
                            </tr>
                            <tr>
                                <td class="style21">
                                    <span style="color: red">*</span>
                                    <asp:Label ID="uxLabelTelefono" runat="server" Text="Telefono:"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="uxCod" runat="server" Width="36px" MaxLength="4" 
                                        onpaste="return false" onkeypress= "return PresionarNumero(event);"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox 
                                        ID="uxTelefono" runat="server" Width="100px" MaxLength="7"
                                        onpaste="return false" onkeypress= "return PresionarNumero(event);"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <br />
                    </fieldset><br />
                    <fieldset>
                        <legend><strong>Agregar&nbsp; Datos de Contrato: </strong></legend>
                                     <table style="width:100%;">
                                         <tr>
                                             <td class="style19">
                                                 <span style="color: red">*</span>
                                                 <asp:Label ID="uxLabelTipoContrato" runat="server" Text="Tipo de Contrato:"></asp:Label>
                                             </td>
                                             <td class="style19">
                                                 <asp:DropDownList ID="uxContrato" runat="server" Width="170px" onpaste="return false">
                                                     <asp:ListItem Selected="True">Seleccione Contrato</asp:ListItem>
                                                     <asp:ListItem>Completo</asp:ListItem>
                                                     <asp:ListItem>Parcial</asp:ListItem>
                                                 </asp:DropDownList>
                                             </td>
                                             <td class="style19">
                                                 <span style="color: red">*</span>
                                                 <asp:Label ID="uxLabelCargo" runat="server" Text="Cargo:"></asp:Label>
                                             </td>
                                             <td class="style19">
                                                 <asp:DropDownList ID="uxCargo" runat="server" Height="22px" Width="170px" onpaste="return false">
                                                     <asp:ListItem Selected="True">Seleccione Cargo</asp:ListItem>
                                                     <asp:ListItem>Director</asp:ListItem>
                                                     <asp:ListItem>Profesor</asp:ListItem>
                                                 </asp:DropDownList>
                                             </td>
                                         </tr>
                                         <tr>
                                             <td class="style19">
                                                 <span style="color: red">*</span>
                                                 <asp:Label ID="uxLAbelFechaInicio" runat="server" Text="Fecha de Inicio:"></asp:Label>
                                             </td>
                                             <td class="style19">
                                                 <asp:TextBox ID="uxFechainicioContrato" runat="server" Height="20px" 

                                                     onpaste="return false" onkeypress= "return PresionarFecha(event);" 
                                                     Width="160px" MaxLength="10"></asp:TextBox>

                                               
                                                 <ajax:CalendarExtender ID="uxFechainicioContrato_CalendarExtender" 
                                                     runat="server" TargetControlID="uxFechainicioContrato" />
                                             </td>
                                             <td class="style19">
                                                 <span style="color: red">*</span>
                                                 <asp:Label ID="uxLabelFechaFin" runat="server" Text="Fecha fin:"></asp:Label>
                                             </td>
                                             <td class="style19">
                                                 <asp:TextBox ID="uxFechaFinContrato" runat="server" Height="20px" Width="160px"
                                                 onpaste="return false" onkeypress= "return PresionarFecha(event);" 
                                                     MaxLength="10"></asp:TextBox>
                                                 <ajax:CalendarExtender ID="uxFechaFinContrato_CalendarExtender" runat="server" 
                                                     TargetControlID="uxFechaFinContrato" />
                                             </td>
                                         </tr>
                                     </table>
                        </fieldset>
                </td>
            </tr>
        </table>
  <br />
  <br />
        <table style="width:100%;">
            <tr>
                <td align="right" class="style22">
                    </td>
                <td style="width: 25px">                 
                    <asp:Button ID="uxBotonAceptarProfesor" align="center" runat="server" CssClass="boton" 
                     Text="Aceptar" onclick="Button1_Click" /></td>
                <td  align="left" class="style22">
                    
                </td>
            </tr>
      
          
        </table>
           <br />  
        
   
    </asp:Panel>
</asp:Content>

